package com.alks.yn_zs.data.request;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author MS
 * @since 2024/11/22上午10:17
 */
@Data
public class StatsRequest {

    @DateTimeFormat("yyyy-MM-dd")
    @ApiModelProperty(value = "结束日期[默认昨天]")
    private LocalDate endDate;

    @JsonIgnore
    @DateTimeFormat("yyyy-MM-dd")
    @ApiModelProperty(value = "起始日期[默认昨天]")
    private LocalDate startDate;

    @ApiModelProperty(value = "标题单位（日、周、月、本月、本周）[默认 日]")
    private String titleUnit;

    @ApiModelProperty(value = "前推单位数（比如单位是月 写2就是取2个月）[默认0]")
    private Integer pushUnit;

}
